<%@ page import="workforecast.Forecast" %>


<div class="fieldcontain ${hasErrors(bean: forecastInstance, field: 'startWeek', 'error')} required">
	<label for="startWeek">
		<g:message code="forecast.startWeek.label" default="Start" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="startWeek" type="number" size="2" value="${forecastInstance.startWeek}" required=""/><span> Week </span>
	<g:field name="startYear" type="number" size="4" value="${forecastInstance.startYear}" required=""/><span> Year </span>
</div>

<div class="fieldcontain ${hasErrors(bean: forecastInstance, field: 'endWeek', 'error')} required">
	<label for="endWeek">
		<g:message code="forecast.endWeek.label" default="End" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="endWeek" type="number" size="2" value="${forecastInstance.endWeek}" required=""/><span> Week </span>
	<g:field name="endYear" type="number" size="4" value="${forecastInstance.endYear}" required=""/><span> Year </span>
</div>

<div class="fieldcontain ${hasErrors(bean: forecastInstance, field: 'user', 'error')} required">
	<label for="user">
		<g:message code="forecast.user.name" default="User" />
		<span class="required-indicator">*</span>
	</label>
	<span>${forecastInstance?.user?.username}</span>
</div>


